﻿using System;

class CSTryCatch {
  class MyException : Exception { 
    public string MyProperty = "MyException";
  }

  void SafeCall(Action action) {
    try {
      action();
    } catch (MyException e) {
      Console.WriteLine(my.MyProperty);
    } catch (Exception e) {
      Console.WriteLine(e.Message);
    }
  }

  public void ExecptionShow() {
    SafeCall(() => { throw new MyException(); });
    SafeCall(() => { throw new ArgumentException("WTF?"); });
  }
}
